package com.qf.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(description = "f_change_request")
@Data
@TableName(value = "f_change_request")
public class FChangeRequest {
    public static final String COL_CHANGE_REQUEST_ID = "change_request_id";
    public static final String COL_CONTRACT_ID = "contract_id";
    public static final String COL_CHANGE_REQUEST_DATE = "change_request_date";
    public static final String COL_CHANGE_REQUEST_AMOUNT = "change_request_amount";
    public static final String COL_NOTES = "notes";
    public static final String COL_REQUEST_CHANGE_DETAILS_PURCHASE_QUANTITY = "request_change_details_purchase_quantity";
    public static final String COL_REQUEST_CHANGE_DETAILS_PURCHASE_UNIT_PRICE = "request_change_details_purchase_unit_price";
    public static final String COL_REQUESTAPPENDICES_OF_A_CONTRACT = "requestappendices_of_a_contract";
    /**
     * 变更申请表主键
     */
    @TableId(value = "change_request_id", type = IdType.INPUT)
    @ApiModelProperty(value = "变更申请表主键")
    private Integer changeRequestId;
    /**
     * 合同表外键 f_contract
     */
    @TableField(value = "contract_id")
    @ApiModelProperty(value = "合同表外键 f_contract")
    private Integer contractId;
    /**
     * 申请变更日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "change_request_date")
    @ApiModelProperty(value = "申请变更日期")
    private Date changeRequestDate;
    /**
     * 本次变更合同金额可以为空
     */
    @TableField(value = "change_request_amount")
    @ApiModelProperty(value = "本次变更合同金额可以为空")
    private Integer changeRequestAmount;
    /**
     * 变更事由可以为空
     */
    @TableField(value = "notes")
    @ApiModelProperty(value = "变更事由可以为空")
    private String notes;
    /**
     * 变更后采购数量可以为空
     */
    @TableField(value = "request_change_details_purchase_quantity")
    @ApiModelProperty(value = "变更后采购数量可以为空")
    private Integer requestChangeDetailsPurchaseQuantity;
    /**
     * 变更后采购单价（元）
     */
    @TableField(value = "request_change_details_purchase_unit_price")
    @ApiModelProperty(value = "变更后采购单价（元）")
    private Integer requestChangeDetailsPurchaseUnitPrice;
    /**
     * 合同附件
     */
    @TableField(value = "requestappendices_of_a_contract")
    @ApiModelProperty(value = "合同附件")
    private String requestappendicesOfAContract;
}